package br.com.etecmatao.business.impl;

import br.com.etecmatao.business.AbstractBusiness;
import br.com.etecmatao.business.AlbunsBusiness;
import br.com.etecmatao.model.Albuns;
import java.util.List;

public class AlbunsBusinessImpl extends AbstractBusiness implements AlbunsBusiness {

    public void save(Albuns albuns) {
        daoFactoryLocator.getAlbunsDAO().save(albuns);
    }

    public List<Albuns> findByAll() {
        return daoFactoryLocator.getAlbunsDAO().findAll();
    }

    public Albuns findById(Integer id) {
        return daoFactoryLocator.getAlbunsDAO().findById(id);
    }

    public void delete(Albuns albuns) {
        daoFactoryLocator.getAlbunsDAO().delete(albuns);
    }

    public void update(Albuns albuns) {
        daoFactoryLocator.getAlbunsDAO().update(albuns);
    }
}
